package com.qinglei.recoup.system.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 雷达设备和微信的绑定关系
 *
 * @author dqh
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_radar_wechat")
@ApiModel(value="RadarWechat对象", description="雷达设备和微信的绑定关系")
public class RadarWechat implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
            @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "微信用户ID")
    private Long userWechatId;

    @ApiModelProperty(value = "雷达设备SN码")
    @NotEmpty
    private String snCode;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "是否订阅：0-未订阅 1-已订阅")
    private Integer isSubscribe;

    @ApiModelProperty(value = "是否删除：0-未删除 1-已删除")
        @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    @NotEmpty
    private String  openId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime modifyTime;

    @TableField(exist = false)
    private Integer bedId;
}
